﻿using UnityEngine;
using System.Collections;

public class Avatar : MonoBehaviour {

	public Motor[] motors;
	public Neuron[] motorNeurons;

	public Sensor[] sensors;
	public Neuron[] sensorNeurons;

	void FixedUpdate() {
		for (int i = 0; i < motors.Length; i++) {
			motors[i].inputValue = motorNeurons[i].axon;
		}
		for (int i = 0; i < sensors.Length; i++) {
			sensorNeurons[i].soma = sensors[i].output;
		}
	}
}
